//
//  NSDate+CS.h
//
//  Created by wujian on 2016/12/29.
//  Copyright © 2016年 wujian. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (CS)
/**
 *  是否为今天
 */
- (BOOL)isToday;
/**
 *  是否为昨天
 */
- (BOOL)isYesterday;
/**
 *  是否为今年
 */
- (BOOL)isThisYear;

/**
 *  返回年－月－日格式的字符串
 */
- (NSString *)stringWithdate;

+ (NSInteger)currentYear;
    
+ (NSInteger)currentMonth;


+ (NSDate *)dateWithYear:(NSInteger)year andMonth:(NSInteger)month;

+ (NSDate *)dateWithString:(NSString *)dateString;

/**
 *  比较与当前时间
 */
- (NSDateComponents *)deltaWithNow;
@end
